import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

var tab = [
	[
		{
			iconPath: "/static/tarimg/首页1.png",
			selectedIconPath: "/static/tarimg/首页2.png",
			text: '首页',
			customIcon: false,
			pagePath:'/pages/super/sup-information/sup-information',
		},
		{
			iconPath: "/static/tarimg/商品中心1.png",
			selectedIconPath: "/static/tarimg/商品中心2.png",
			text: '商品中心',
			customIcon: false,
			pagePath:'/pages/super/sup-commodity/sup-commodity',
		},
		{
			iconPath: "/static/tarimg/数据1.png",
			selectedIconPath: "/static/tarimg/数据2.png",
			text: '数据报表',
			customIcon: false,
			pagePath: "/pages/super/sup-datarep/sup-datarep",
		},
		{
			iconPath: "/static/tarimg/个人1.png",
			selectedIconPath: "/static/tarimg/个人2.png",
			text: '设置中心',
			customIcon: false,
			pagePath:"/pages/super/sup-homepage/sup-homepage"
		}			
	],[
		{
			iconPath: "/static/tarimg/首页1.png",
			selectedIconPath: "/static/tarimg/首页2.png",
			text: '首页',
			customIcon: false,
			pagePath:'/pages/businessr/bus-commodity/bus-commodity',
		},
		{
			iconPath: "/static/tarimg/补货管理1.png",
			selectedIconPath: "/static/tarimg/补货管理2.png",
			text: '工作台',
			customIcon: false,
			pagePath:'/pages/businessr/bus-stockup/bus-stockup',
		},
		{
			iconPath: "/static/tarimg/个人1.png",
			selectedIconPath: "/static/tarimg/个人2.png",
			text: '个人中心',
			customIcon: false,
			pagePath:"/pages/businessr/bus-homepage/bus-homepage"
		}
	],[
		{
			iconPath: "/static/tarimg/首页1.png",
			selectedIconPath: "/static/tarimg/首页2.png",
			text: '首页',
			customIcon: false,
			pagePath:'/pages/buyer/buy-commodity/buy-commodity',
		},
		{
			iconPath: "/static/tarimg/采购1.png",
			selectedIconPath: "/static/tarimg/采购2.png",
			text: '采购中心',
			customIcon: false,
			pagePath:'/pages/buyer/buy-procuring/buy-procuring',
		},
		{
			iconPath: "/static/tarimg/个人1.png",
			selectedIconPath: "/static/tarimg/个人2.png",
			text: '个人中心',
			customIcon: false,
			pagePath:"/pages/buyer/buy-hompage/buy-hompage"
		}
	],[
		{
			iconPath: "/static/tarimg/首页1.png",
			selectedIconPath: "/static/tarimg/首页2.png",
			text: '首页',
			customIcon: false,
			pagePath:'/pages/warekeeper/war-commodity/war-commodity',
		},
		{
			iconPath: "/static/tarimg/出入库记录1.png",
			selectedIconPath: "/static/tarimg/出入库记录2.png",
			text: '出入库管理',
			customIcon: false,
			pagePath:'/pages/warekeeper/war-bound/war-bound',
		},
		{
			iconPath: "/static/tarimg/个人1.png",
			selectedIconPath: "/static/tarimg/个人2.png",
			text: '个人中心',
			customIcon: false,
			pagePath:"/pages/warekeeper/war-hompage/war-hompage"
		}
	],[
		
	]
]

const store = new Vuex.Store({
	mutations: {
		setRoleId(state, value) {
			state.tabBerList = tab[value]
		},
	},
	state: {
		tabBerList:[],
		count:10
	},
	
})
export default store
